package com.example.album;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

public interface LikeRepository extends JpaRepository<Like, String>{
    Like save(Like like);
    void delete(Like like);
    Like findByUserIdAndAlbumId(String userId, String albumId);
    long countLikesByUserId(String userId);
    // 新增：统计某些相册id的获赞数
    long countByAlbumIdIn(List<String> albumIds);
}
